package com.jubao.ejb.dao;

import java.io.Serializable;
import java.util.List;

import com.jubao.ejb.entity.ProductPrice;

public interface ProductPriceDao extends Serializable {

	/**
	 * save geneRelation
	 * 
	 * @param productPrice
	 * @return geneRelation
	 */
	public ProductPrice save(ProductPrice productPrice);

	/**
	 * find GeneRelation
	 * 
	 * @param sysId GeneRelation sysId
	 * @return 
	 */
	public ProductPrice find(long sysId);

	/**
	 * find ProductPrice 
	 * 
	 * @param storeSysId from entity sysid
	 * @param relationId relation 
	 * @param productSysId to entity sysid
	 * @return
	 */
	public ProductPrice find(long storeSysId, int relationId, long productSysId);

	/**
	 * get product price sale by stores which are member of areaCategory
	 * 
	 * @param relationIdAreaCat
	 * @param areaCategorySysId
	 * @param storeSysId
	 * @param relationId
	 * @param productSysId
	 * @param pgno
	 * @param pgsize
	 * @return
	 */
	public List<ProductPrice> getProductPriceList(int relationIdAreaCat,long areaCategorySysId, long storeSysId, int relationId, long productSysId, int pgno, int pgsize);


	/**
	 * get count of product price sale by stores  which are member of areaCategory
	 * 
	 * @param relationIdAreaCat
	 * @param areaCategorySysId
	 * @param storeSysId
	 * @param relationId
	 * @param productSysId
	 * @return
	 */
	public long getProductPriceCount(int relationIdAreaCat,long areaCategorySysId, long storeSysId, int relationId, long productSysId);

}
